<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	
	xmlns:t="http://myfaces.apache.org/tomahawk"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:fmt="http://java.sun.com/jstl/fmt"
    xmlns:rich="http://richfaces.org/rich">
    
 
	<ui:define name="body">
	
		<rich:modalPanel id="panelImprimir" width="700" height="300" resizeable="false">
			<f:facet name="header">Imprimir</f:facet>
				 <f:facet name="controls">
			            <h:panelGroup>
			            <h:form>
			              	<a4j:commandLink reRender="gpBanner" onclick="Richfaces.hideModalPanel('panelImprimir')" >
			              		<h:graphicImage value="/resources/imagens/close.png" styleClass="hidelink"/>
			              	</a4j:commandLink>
			              </h:form>	                
			            </h:panelGroup>
			        </f:facet>
			
			<h:form id="imprimir" styleClass="form">
				<a4j:outputPanel  id="pgMensagemCompromisso">
							<div class="grid-7-12">
							 <h:messages style="padding:5px" errorClass="errorMessage" infoClass="infoMessage"  />
							</div>
				</a4j:outputPanel>
				
				<div class="field-clear"></div>
				<t:fieldset legend="Campos Relatório">
					<div class="grid-8-12">
							<h:outputLabel  id="lbTitulo" class="form-lbl"  value="Título:"/>
							<h:inputText maxlength="100" style="text-transform: none" label="Nome" id="inptNome" styleClass="form-txt"  value="#{membroRelatorioBean.titulo}" />
					</div>
					<div class="field-clear"></div>
					  <h:panelGroup id="pgExibirTipoRelatorio">
					  <h:panelGroup rendered="#{!membroRelatorioBean.relatorioAniversario}">
						<div class="grid-2-12">
						<h:outputLabel  id="lbTipoRelatorio" class="form-lbl"  value="Tipo:"/>
						<h:selectOneMenu id="cbTipoTipoRelatorio" styleClass="form-txt" value="#{membroRelatorioBean.tipoImpressao}">				 		
					 		<f:selectItem itemLabel="Básico" itemValue="B"/>
					 		<f:selectItem itemLabel="Completo" itemValue="C"/>
				 		</h:selectOneMenu>
					</div>	
				  </h:panelGroup>
				  </h:panelGroup>
				</t:fieldset>
				 <div style="padding-bottom: 20px; padding-top: 20px">
				 <div class="grid-2-12">
					<h:commandLink id="cmdImprimir"  styleClass="form-button" action="#{membroRelatorioBean.imprimirModal}"  value="Imprimir" >
					</h:commandLink>
				</div>
			</div>
				                     
			</h:form>
		</rich:modalPanel>

		<t:saveState value="#{membroRelatorioBean.relatorioAniversario}"/>
		<t:saveState value="#{membroRelatorioBean.listaMembrosVos}"/>
		<t:saveState  value="#{membroRelatorioBean.listaResult}"/>
		<t:saveState  value="#{membroRelatorioBean.relatorioCorrente}"/>
		<t:saveState  value="#{membroRelatorioBean.tipoMembro}"/>
		<t:saveState  value="#{membroRelatorioBean.relTipoMembro}"/>
		<t:saveState  value="#{membroRelatorioBean.relPadrao}"/>
	
	</ui:define>


</ui:composition>
